﻿namespace ElWsDemo.WebService.IService.Response
{
    /// <summary>
    /// 服务返回报文
    /// </summary>
    public class ServiceResponse<T>
    {
        public int Code { get; set; } = 200;
        public string Message { get; set; } = "请求成功";
        public T Data { get; set; }

        public ServiceResponse() { }

        public ServiceResponse(int code, string message)
        {
            Code = code;
            Message = message;
        }
    }
}
